package com.travel.travelServer.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.travel.travelServer.utils.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * (Car)表实体类
 *
 * @author makejava
 * @since 2024-03-01 15:38:34
 */
@SuppressWarnings("serial")
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
public class Car extends BaseEntity<Car> {
    //水果id
    @JsonFormat(shape=JsonFormat.Shape.STRING)
    private Long fruitId;
    //数量
    private Integer number;
    //所属用户
    @JsonFormat(shape=JsonFormat.Shape.STRING)
    private Long userId;

    @TableField(exist = false)
    private Goods goods;
    @TableField(exist = false)
    private User user;
    //数量
    private Integer status;
}

